﻿using System;
using System.Collections.Generic;

namespace SmartSpace.Silverlight
{
    public interface INavigatePanel
    {
        void LoadNavigations(IEnumerable<SlNavigation> navigations, IEnumerable<SlShortcut> shortcuts);
        SlView GetContentView();
        event NavigatingEventHandler Navigating;
    }

    public class NavigatingEventArgs : EventArgs
    {
        public string NavigationCaption { get; set; }
        public SlNavigateView View { get; private set; }
        public NavigatingEventArgs(string navigationCaption, SlNavigateView view)
        {
            NavigationCaption = navigationCaption;
            View = view;
        }
    }

    public delegate void NavigatingEventHandler(object sender, NavigatingEventArgs e);
}
